<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:91:"D:\PHPTutorial\WWW\guyun\public/../application/admin\view\personalcenter\realNameCheck.html";i:1542617473;s:64:"D:\PHPTutorial\WWW\guyun\application\admin\view\common\head.html";i:1541553786;s:66:"D:\PHPTutorial\WWW\guyun\application\admin\view\common\footer.html";i:1515220430;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>上海顾云数据科技中心</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/build/css/app.css" media="all">
</head>
<style>
    .hidden{
        display: none;
    }

</style>
<div style="overflow-x: hidden;width: 96%;margin: auto;padding-top: 1rem;">
    <blockquote class="layui-elem-quote"><span>应用中心&nbsp;&nbsp;&nbsp;&nbsp;实名认证&nbsp;&nbsp;<span style="color: red;">（实名认证一经通过,后续付款方的银行开户名必须与聚合实名信息一致，否则不给予入账！）</span></span></blockquote>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
       <legend>实名认证 - 用户信息</legend>
    </fieldset>
  <div class="layui-col-md12">
    <div class="layui-card">
      <div class="layui-card-body">
        <table class="layui-table" lay-skin="line">
          <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
          </colgroup>
          <thead>
          <tr>
            <th>
              <?php if($info['is_check'] == 1): ?>
              <i class="layui-icon " style="font-size: 30px; color:red;">&#xe614;</i>&nbsp;
              <span style="color: red;line-height: 50px;font-size: 22px">未认证</span>
              <?php elseif($info['is_check'] == 2): ?>
              <i class="layui-icon " style="font-size: 30px; color:red;">&#xe614;</i>&nbsp;
              <span style="color: red;line-height: 50px;font-size: 22px">审核中</span>
              <?php else: ?>
              <i class="layui-icon " style="font-size: 30px; color:#029587;">&#x1005;</i>&nbsp;
              <span style="color: #029587;line-height: 50px;font-size: 22px">已认证</span>
              <?php endif; ?>
            </th>
            <th>
              <?php if($info['is_check'] == 1): ?>
              <a href="#" class="change"><span style="color: #029587;">申请实名认证</span></a>
              <?php else: ?>
              <a href="#" class="change"><span style="color: #029587;">申请实名变更</span></a>
              <?php endif; ?>
            </th>
          </tr>
          </thead>
          <tbody>
          <?php if($info['is_check'] == 1): else: ?>
          <tr>
            <td>认证类型:&nbsp;&nbsp;&nbsp;&nbsp;企业认证</td>
            <td>公司地址:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $info['address']; ?></td>
          </tr>
          <tr>
            <td>公司名称:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $info['company_name']; ?></td>
            <td>联系人姓名:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $info['contect_people']; ?></td>
          </tr>
          <tr>
            <td>社会统一编码:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $info['social_unified_coding']; ?></td>
            <td>联系人电话:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $info['mobile']; ?></td>
          </tr>
          <tr>
            <td>税务登记证编号:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $info['registration_certificate']; ?></td>
            <td>营业执照副本:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $info['url']; ?>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="image"><span style="color:#029587 ;">预览</span></a></td>
          </tr>
          <tr>
            <td>组织机构编号:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $info['organization_number']; ?></td>
            <td></td>
          </tr>
          <?php endif; ?>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
    <script src="/static/admin/layui/layui.js"></script>
<script src="/static/common/js/jquery.min.js"></script>
<script>
//    图片放大显示
    $('.select_img').on('click',function () {
        var img_url=$(this).data('content');
        layer.open({
            type: 1,
            title: false,
            closeBtn: 0,
            area: ['50%','80%'],
            skin: 'layui-layer-nobg', //没有背景色
            shadeClose: true,
            content: '<img src="'+img_url+'" />',
        });
    })
    //文件上传
    layui.use('upload', function(){
        var $ = layui.jquery
            ,upload = layui.upload;
        //多文件列表示例
        var demoListView = $('#demoList')
            ,uploadListIns = upload.render({
            elem: '#testList'
            ,url: '<?php echo url("Upload/file_images"); ?>'
            ,accept: 'file'
            ,multiple: true
            ,auto: false
            ,bindAction: '#testListAction'
            ,choose: function(obj){
                var files = obj.pushFile(); //将每次选择的文件追加到文件队列
                //读取本地文件
                obj.preview(function(index, file, result){
                    var tr = $(['<tr id="upload-'+ index +'">'
                        ,'<td>'+ file.name +'</td>'
                        ,'<td>'+ (file.size/1014).toFixed(1) +'kb</td>'
                        ,'<td>等待上传</td>'
                        ,'<td>'
                        ,'<button class="layui-btn layui-btn-mini demo-reload layui-hide">重传</button>'
                        ,'<button class="layui-btn layui-btn-mini layui-btn-danger demo-delete">删除</button>'
                        ,'</td>'
                        ,'</tr>'].join(''));

                    //单个重传
                    tr.find('.demo-reload').on('click', function(){
                        obj.upload(index, file);
                    });

                    //删除
                    tr.find('.demo-delete').on('click', function(){
                        delete files[index]; //删除对应的文件
                        tr.remove();
                    });

                    demoListView.append(tr);
                });
            }
            ,done: function(res, index, upload){
                if(res.code == 200){ //上传成功
                    var tr = demoListView.find('tr#upload-'+ index)
                        ,tds = tr.children();
                    tds.eq(2).html('<span style="color: #5FB878;">上传成功</span><input type="hidden" name="images['+index+']" value="'+res.data.src+'">');
                    tds.eq(3).html(''); //清空操作
                    delete files[index]; //删除文件队列已经上传成功的文件
                    return;
                }
                this.error(index, upload);
            }
            ,error: function(index, upload){
                var tr = demoListView.find('tr#upload-'+ index)
                    ,tds = tr.children();
                tds.eq(2).html('<span style="color: #FF5722;">上传失败</span>');
                tds.eq(3).find('.demo-reload').removeClass('layui-hide'); //显示重传
            }
        });

        //普通图片上传 单图片上传
        var uploadInst = upload.render({
            elem: '#image'
            ,url: '<?php echo url("Upload/file_images"); ?>'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                    $('#show_image').attr('src', result); //图片链接（base64）
                });
            }
            ,done: function(res){
                //如果上传失败
                if(res.code == 400){
                    return layer.msg('上传失败');
                }
                $('.value_image').val(res.data.src);
                //上传成功
            }
            ,error: function(){
                //演示失败状态，并实现重传
                var demoText = $('#demoText');
                demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-mini demo-reload">重试</a>');
                demoText.find('.demo-reload').on('click', function(){
                    uploadInst.upload();
                });
            }
        });
    });
</script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
</body>
  <script src="/static/admin/jquery.js"></script>
  <script type="text/javascript" src="/static/index/layer/layer.js"></script>
  <script>
      $('.change').click(function(){
          layer.open({
              type: 2,
              title: '实名认证',
              shadeClose: true,
              shade: false,
              maxmin: true, //开启最大化最小化按钮
              area: ['100%', '100%'],
              content: "/admin/Personalcenter/realNameCheckPage",
              end: function () {
                  table.reload('testReload');
              },
          });
      });
      $('.image').click(function(){
          layer.open({
              type: 2,
              title: '图片预览',
              shadeClose: true,
              shade: false,
              maxmin: true, //开启最大化最小化按钮
              area: ['100%', '100%'],
              content: "/admin/Personalcenter/imagePage",
              end: function () {
                  table.reload('testReload');
              },
          });
      });
  </script>
</html>